home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trusted Irix /B 4.0.4
/
Trusted-Irix B-4.0.1.iso
/
dist
/
eoe1.idb
/
usr
/
include
/
sys
/
major.h.z
/
major.h
Wrap
C/C++ Source or Header
|
1992-04-03
|
6KB
|
155 lines
/**************************************************************************
* *
* Copyright (C) 1989, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *
* are protected by Federal copyright law. They may not be disclosed *
* to third parties or copied or duplicated in any form, in whole or *
* in part, without the prior written consent of Silicon Graphics, Inc. *
* *
**************************************************************************/
#ident "$Revision: 1.34 $"
/* Definitions for external major numbers. */
#define DU_MAJOR 0
#define MM_MAJOR 1 /* /dev/mem & /dev/kmem */
#define SY_MAJOR 2
#define RD_MAJOR 3
#define DKIP_MAJOR 4 /* Interphase disk controllers. */
#define TS_MAJOR 5 /* QIC tape */
#define XYL_MAJOR 6 /* Xylogics disk controllers. */
#define PRF_MAJOR 7 /* Kernel profiler */
#define CDSIO_MAJOR 8 /* serial I/O board */
#define QUEUE_MAJOR 9
#define CLN_MAJOR 10 /* streams clone device */
#define HL_MAJOR 11 /* hardware spinlock implementation */
#define GRO_MAJOR 12
#define GRI_MAJOR 13
#define PTC_MAJOR 14 /* PTY controller--see also PTC*_MAJOR */
#define PTS_MAJOR 15
#define IKC_MAJOR 16 /* Ikon color printer driver */
#define XM_MAJOR 17 /* Xylogics 1/2" tape. */
#define NFS_MAJOR 18
#define NFS1_MAJOR 19
#define NF2S_MAJOR 20
#define NFS3_MAJOR 21
#define DKSC_MAJOR 22 /* SCSI hard disks on SCSI ctlr 0 */
#define TPSC_MAJOR 23 /* SCSI tape. on SCSI ctlr 0 */
#define GM_MAJOR 24
#define DN_LL_MAJOR 25 /* 4DDN logical link driver */
#define DN_NETMAN_MAJOR 26 /* 4DDN network management */
#define DKSC1_MAJOR 27 /* SCSI hard disks on SCSI ctlr 1 */
#define TPSC1_MAJOR 28 /* SCSI tape. on SCSI ctlr 1 */
#define SMFD1_MAJOR 29 /* SCSI floppy driver (Scientific Microsystems
* 5 1/4, Konica ST-510 10.7Mb, and NCR 5 1/4"
* and 3 1/2" drives on SCSI ctlr 1 */
#define LV_MAJOR 30 /* logical volume disk driver. */
#define HY_MAJOR 31 /* Hyperchannel */
#define GPIB_MAJOR 32
#define T3270_MAJOR 34 /* IBM 3270 interface */
#define GSE_MAJOR 35 /* Spectragraphics coax driver */
#define SI_MAJOR 36 /* IBM SNA SDLC controller */
#define ZERO_MAJOR 37 /* /dev/zero - mapped shared mem driver */
#define MCIOPLP_MAJOR 38 /* PI printer */
#define MCIOAUD_MAJOR 39 /* PI sound */
#define SMFD_MAJOR 40 /* SCSI floppy driver (Scientific Microsystems
* 5 1/4, Konica ST-510 10.7Mb, and NCR 5 1/4"
* and 3 1/2" drives on SCSI ctlr 0 */
#define KLOG_MAJOR 41 /* Kernel error logging driver */
#define IMON_MAJOR 42 /* inode monitor driver */
#define DSCSI_MAJOR 43 /* devscsi: generic scsi interface */
#define XYLSIO_MAJOR 44 /* Xylogics 16 port serial I/O board */
#define FSCTL_MAJOR 45 /* EFS pseudo-device */
#define TPORT_MAJOR 46 /* Textport Emulation on graphics */
#define USEMA_MAJOR 47 /* pollable semaphore device */
#define IPI_MAJOR 48 /* Xylogics IPI disk controllers. */
#define IPI1_MAJOR 49 /* Xylogics IPI disk controllers. */
#define IPI2_MAJOR 50 /* Xylogics IPI disk controllers. */
#define IPI3_MAJOR 51 /* Xylogics IPI disk controllers. */
#define CFEI_MAJOR 52 /* Cray FEI-3 low speed channel parallel intf */
#define HDSP_MAJOR 53 /* PI H. DSP */
#define SHMIQ_MAJOR 54 /* Shared mem input queue (for window system) */
#define QCNTL_MAJOR 55 /* Shared mem input queue (character device) */
#define GFXS_MAJOR 56 /* graphics driver streams interface */
#define GFX_MAJOR 57 /* graphics driver */
#define CONSOLE_MAJOR 58 /* console driver */
#define IPFILT_MAJOR 59 /* IP packet filtering */
/* 60-79 Are reserved for Customer Use */
#define CLN2_MAJOR 80 /* char special clone device */
#define DKSC2_MAJOR 81 /* SCSI hard disks on SCSI ctlr 2 */
#define DKSC3_MAJOR 82 /* SCSI hard disks on SCSI ctlr 3 */
#define TPSC2_MAJOR 83 /* SCSI tape. on SCSI ctlr 2 */
#define TPSC3_MAJOR 84 /* SCSI tape. on SCSI ctlr 3 */
#define SMFD2_MAJOR 85
#define SMFD3_MAJOR 86 /* SCSI floppy driver (Scientific Microsystems
* 5 1/4, Konica ST-510 10.7Mb, and NCR 5 1/4"
* and 3 1/2" drives on SCSI ctlr 2,3 */
#define RTE_MAJOR 87
#define JAG0_MAJOR 88 /* SCSI VME disk controller 0 */
#define JAG1_MAJOR 89 /* SCSI VME disk controller 1 */
#define JAG2_MAJOR 90 /* SCSI VME disk controller 2 */
#define JAG3_MAJOR 91 /* SCSI VME disk controller 3 */
#define JAG4_MAJOR 92 /* SCSI VME disk controller 4 */
#define JAG5_MAJOR 93 /* SCSI VME disk controller 5 */
#define JAG6_MAJOR 94 /* SCSI VME disk controller 6 */
#define JAG7_MAJOR 95 /* SCSI VME disk controller 7 */
#define JAGTAPE0_MAJOR 96 /* SCSI VME tape controller 0 */
#define JAGTAPE1_MAJOR 97 /* SCSI VME tape controller 1 */
#define JAGTAPE2_MAJOR 98 /* SCSI VME tape controller 2 */
#define JAGTAPE3_MAJOR 99 /* SCSI VME tape controller 3 */
#define JAGTAPE4_MAJOR 100 /* SCSI VME tape controller 4 */
#define JAGTAPE5_MAJOR 101 /* SCSI VME tape controller 5 */
#define JAGTAPE6_MAJOR 102 /* SCSI VME tape controller 6 */
#define JAGTAPE7_MAJOR 103 /* SCSI VME tape controller 7 */
#define PTC1_MAJOR 104 /* additional PTYs */
#define PTS1_MAJOR 105
#define PTC2_MAJOR 106
#define PTS2_MAJOR 107
#define PTC3_MAJOR 108
#define PTS3_MAJOR 109
#define PTC4_MAJOR 110
#define PTS4_MAJOR 111
#define MFS_MAJOR 112
#define MFS1_MAJOR 113
#define MFS2_MAJOR 114
#define MFS3_MAJOR 115
#define SNATR_MAJOR 116 /* IBM SNA Token Ring stream pseudo-driver */
#define SNIF_MAJOR 117 /* SNIF Streams Network Interface */
/* These macros are shared by tpsc.c, dksc.c smfd.c */
/* SCSI minor # breakdown.
* 7 6 5 4 3 2 1 0
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* + + +
* + Target ID + driver's dependent +
* + + +
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
#ifdef STANDALONE
extern int scsimajor[];
#else
extern char scsimajor[];
#endif
#define scsi_ctlr(dev) scsimajor[((dev >> 8) & 0x7f)]
#define scsi_unit(dev) ((dev >> 5) & 0x7)